package com.hou.serviceuserfeign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.netflix.turbine.EnableTurbine;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients  //启动Feign
@EnableCircuitBreaker  //启用熔断
@EnableTurbine
@EnableHystrixDashboard   //Dashboard启用监控
public class ServiceUserFeignApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceUserFeignApplication.class, args);
    }
}
